package com.atguigu.gulimall.ware.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.ware.entity.WareSkuEntity;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Map;

/**
 * 商品库存
 *
 * @author szh
 * @email sssss@gmail.com
 * @date 2020-12-30 20:51:20
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

	/**
	 * 功能：将成功采购的商品如库
	 * @param skuId skuid
	 * @param wareId 仓库id
	 * @param skuNum 数量
	 */
	void addStock(Long skuId, Long wareId, Integer skuNum);
}

